package com.twu.biblioteca;

import java.io.PrintStream;

public class Movie {

    private String name;
    private String year;
    private String director;
    private String rating;
    private PrintStream printStream;

    public Movie(String name, String year, String director, String rating, PrintStream printStream) {
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = rating;
        this.printStream = printStream;
    }

    public void printMovie() {
        printStream.println(this.name+"|"+this.year+"|"+this.director+"|"+this.rating);
    }
}
